export enum DICT_TYPE {
    danger = "danger",
    secret = "secret"
}

export enum SURVEY_STATUS {
    new = "new",
    editing = "editing",
    pausing = "pausing",
    published = "published",
    removed = "removed"
}

export enum QUESTION_TYPE {
    enps = "enps",
    nps = "nps",
    question = "question", //通用问卷
    register = "register", //报名
    vote = "vote" //投票
}

export enum HISTORY_TYPE {
    dailyHis = "dailyHis", //保存历史
    publishHis = "publishHis" //发布历史
}

export interface UserType {
    _id: string;
    username: string;
    password: string;
    curStatus: any;
    createDate: number;
}

export class CommonError extends Error {
    code: number
    errmsg: number
    constructor(msg, code = 500) {
        super(msg)
        this.errmsg = msg
        this.code = code
    }
}
